/*
 * @Descripttion: 试题分类信息接口
 * @Author: wind-lc
 * @version: 1.0
 * @Date: 2021-05-13 11:43:46
 * @LastEditTime: 2021-05-17 20:08:13
 * @FilePath: \cscec-pms-admin\src\api\partyMasses\partyStudyInfo\questionsClassifyInfo\index.js
 */
import request from '@/utils/request2';
import { unionApiUrl } from '@/api/config.js';

/**
 * @description: 新增试题分类信息
 * @param {Object} data 接口参数
 * @return {Promise} 接口Promise
 */
const insertSelective = data => {
  return request({
    url: `${unionApiUrl}/examType/insertSelective`,
    method: 'post',
    data
  })
}
/**
 * @description: 分页查询
 * @param {Object} data 接口参数
 * @return {Promise} 接口Promise
 */
const getPageExamType = data => {
  return request({
    url: `${unionApiUrl}/examType/getPageExamType`,
    method: 'post',
    data
  })
}
/**
 * @description: 编辑试题分类信息
 * @param {Object} data 接口参数
 * @return {Promise} 接口Promise
 */
const updateByPrimaryKeySelective = data => {
  return request({
    url: `${unionApiUrl}/examType/updateByPrimaryKeySelective`,
    method: 'post',
    data
  })
}
/**
 * @description: 删除试题分类信息
 * @param {Object} data 接口参数
 * @return {Promise} 接口Promise
 */
const deleteByPrimaryKey = data => {
  return request({
    url: `${unionApiUrl}/examType/deleteByPrimaryKey`,
    method: 'post',
    data
  })
}

export {
  insertSelective,
  getPageExamType,
  updateByPrimaryKeySelective,
  deleteByPrimaryKey
}